﻿using System;

namespace NMA.Infrastructure.NHibernate.DomainObject
{
    using NMA.Domain.Shared;
    using NMA.Domain.Model;
    using NMA.Infrastructure.DBC;

    public class Resources : BaseEntity<IResources>, IResources
    {
        public virtual string ResourceType { get; set; }

        public virtual string CultureCode { get; set; }

        public virtual string ResourceKey { get; set; }

        public virtual string ResourceValue { get; set; }

        public virtual string CreatedUser { get; set; }

        public virtual string UpdatedUser { get; set; }

        public override bool SameIdentityAs(IResources other)
        {
            Check.Assert(other == null, "Resources instance is null");

            return this.Id == other.Id;
        }
    }
}